

#include "stdafx.h"
#include "CAblationParameterEx.h"


BOOL CAblationParameterEx::IsListEmpty()
{
	BOOL l_bListEmpty = TRUE;
	if(m_lstChannelList.size() > 0)
	{
		l_bListEmpty = FALSE;
	}

	return l_bListEmpty;
}
CChannel CAblationParameterEx::GetNextChannel()
{
	CChannel l_objChannel = *(m_lstChannelList.begin());
	m_lstChannelList.pop_front();
	return l_objChannel;
}

VOID CAblationParameterEx::AddChannel(CChannel f_objChannel)
{
	m_lstChannelList.push_back(f_objChannel);
}

INT32 CAblationParameterEx::GetAblationParamCount()
{
	INT32 l_iParamCount = 0;

	list<CChannel>::iterator itr = m_lstChannelList.begin();
	for(;m_lstChannelList.end() != itr;++itr)
	{
		l_iParamCount += (*(itr)).GetParameterList().size();
	}

	return l_iParamCount;
}